<form class="layui-form ajax _form" action="{if condition=" isset($data) "}{:url('home/pages/go_edit','id='.$data['id'])}{else /}{:url('home/pages/add')}{/if}" method="post">
    <div class = "layui-form-item">
        <label class="layui-form-label" > 页面名称</label>
        <div class = "layui-input-block">
            <input type="text" name="name" value="{$data.name|default=''}" class="layui-input" placeholder="页面名称" required lay-verify="required"/>
        </div>
    </div>
    <div class = "layui-form-item">
        <label class="layui-form-label" > 别名</label>
        <div class = "layui-input-block">
            <input type="text" name="keyword_en" value="{$data.keyword_en|default=''}" class="layui-input" placeholder="页面别名" required lay-verify="required"/>
        </div>
    </div>
    <div class = "layui-form-item">
        <label class="layui-form-label"> 页面标题</label>
        <div class="layui-input-block">
            <input type="text" name="title_cn" value="{$data.title_cn|default=''}" class="layui-input" placeholder="页面标题" required lay-verify="required"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" > 是否有效</label>
        <div class="layui-input-block" style="padding-top: 5px;">
            <input type="checkbox" name="status" value="Y" checked title="有效">
        </div>
    </div>
    <div class="layui-form-item">
        <button class="layui-btn layui-btn-success" type="submit">
            <i class="layui-icon layui-icon-ok"></i> 保存
        </button>
        <button class="layui-btn" type="reset">
            <i class="layui-icon layui-icon-refresh"></i> 重置
        </button>
    </div>

</form>

